<template>
  <div>
    <div class="top-title clearfix">
      <div class="el-icon-back fl" @click="goBack"></div>
      <div class="title-text">{{title}}</div>
    </div>
  </div>
</template>
<script>
export default {
  data(){
    return {

    }
  },
  props:{
    title: String
  },
  methods:{
    goBack: function () {
      this.$router.go(-1)
    }
  }
}
</script>
<style>
  .top-title{
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8)
  }
  .el-icon-back{
    line-height: 50px;
    font-size: 18px;
  }
  .title-text{
    overflow: hidden;
  }
</style>

